<?php /* Smarty version 2.6.20, created on 2013-05-25 01:50:46
         compiled from _core/_include/module/_mvc/control/handletableproduceworkers.tpl */ ?>
function HandleTableProduceWorkers(gui, item, options) {
  this._gui = gui;
  this._item = item;
  this._options = options;
  this._parent = (options && options.parent) ? options.parent : null;
  this._createElements();
}

HandleTableProduceWorkers.prototype._createElements = function() {
  var tr, td, _self = this;
  
  if (this._item.length == 0) {
    tr = this._gui.table.insertRow(-1);
    td = tr.insertCell(-1);
    td.colSpan = 7;
    td.style.height = '40px';
    if ( this._parent.disposalstatus == 1 || this._parent.finished == 1) {
      td.style.backgroundColor = '#ccc';
      td.style.borderRight = 'solid 1px #999';
      td.style.borderBottom = 'solid 1px #999';
    } else {
      td.style.backgroundColor = '#fff';
      td.style.borderRight = 'solid 1px #694247';
      td.style.borderBottom = 'solid 1px #694247';
    }
    td.style.textAlign = 'center';
    td.appendChild(document.createTextNode('N/A'));
  }
  
  MiscUtils.sort(this._item, ['title']);
  for (var i = 0, il = this._item.length; i < il; i++) {
    var produce = this._item[i];
    tr = this._gui.table.insertRow(-1);
    new TableRowProduceWorker(tr, produce, this._options);
  }
};